package com.ywq.app.web.mvc.test;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ywq.app.biz.UserBiz;
import com.ywq.app.domain.User;
@Controller
public class UserController {
	@Autowired
	public UserBiz userBiz;
	@RequestMapping(value = "/user.htm", method = RequestMethod.GET)
	public String test(HttpServletRequest request) throws Exception {
		List<User> userList = userBiz.findAll();
		request.setAttribute("userList", userList);
		return "user/user";
	}
}
